/**   
 * @Title: RechargeShenzhouxin.java 
 * @Package com.esun.elk.ui.views.userinfo.recharge 
 * @Description: 手机充值卡页
 * @author Kael gaojian@500wan.com  
 * @date 2012-8-1 下午3:51:27 
 * copy right 深圳市易讯天空网络技术有限公司
 */
package com.esun.rabbit2.viewer.mainact.mylotteryact.recharg;

import com.esun.config.Config;
import com.esun.model.UserInfo;
import com.esun.ui.R;
import com.esun.util.webviewchromeclient.MyWebViewChromeClient;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.RelativeLayout;


/** 
* @ClassName: RechargeShenzhouxin 
* @Description: 手机充值卡页 
* @author: Kael gaojian@500wan.com
* @date: 2012-8-1 下午3:51:27 
*  
*/
public class RechargeShenzhouxin extends Activity  {
	private ImageButton btn_back;
	private WebView wv_phoneCardCharge;
	private RelativeLayout relativeProgress;
	private String url;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.recharge_szx);
		init ();
		wv_phoneCardCharge.loadUrl(url);
	}
	private void init () {
		btn_back = (ImageButton) findViewById(R.id.recharge_szx_btn_goBack);
		btn_back.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {
				finish();		
			}
		});
		relativeProgress = (RelativeLayout)findViewById(R.id.recharge_szx_act_relative_progress);
		wv_phoneCardCharge = (WebView) findViewById(R.id.webView_rechargephonecard);
		WebSettings webSettings = wv_phoneCardCharge.getSettings();
		webSettings.setJavaScriptEnabled(true);
		webSettings.setSaveFormData(false);
		webSettings.setSavePassword(false);
		webSettings.setSupportZoom(false);
		wv_phoneCardCharge.setWebChromeClient(new MyWebViewChromeClient(relativeProgress));
		String username = UserInfo.getUserInfo().getUserName();
		String userpassword = UserInfo.getUserInfo().getUserPwd();
		String platform = Config.NUM1;
		url = Config.ACTUVITY_RECHARGE_BY_PHONECARD + "?username=" + username + "&password=" + userpassword + "&platform=" + platform;
	}

	
}
